:root {
    --wtmp-bg: #12141d;
    --wtmp-card-bg: rgba(26, 29, 41, 0.6);
    --wtmp-border: rgba(255, 255, 255, 0.05);
    --wtmp-text: #e2e8f0;
    --wtmp-muted: #94a3b8;
    --wtmp-accent: #3b82f6;
    --wtmp-accent-glow: rgba(59, 130, 246, 0.2);
    --wtmp-success: #10b981;
}

/* Base Wrapper Container */
.wtmp-wrapper {
    font-family: 'Inter', 'Roboto', sans-serif;
    background: var(--wtmp-bg);
    color: var(--wtmp-text);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    direction: rtl; /* Assuming RTL for Arabic content based on provided context */
}

/* Glassmorphism Card Style */
.wtmp-card {
    background: var(--wtmp-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--wtmp-border);
    border-radius: 12px;
    margin-bottom: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.wtmp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--wtmp-accent-glow);
    border-color: rgba(255,255,255, 0.1);
}

/* League Header inside Detailed Design */
.wtmp-league-header {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, rgba(26, 29, 41, 0.8) 100%);
    padding: 12px 20px;
    border-bottom: 1px solid var(--wtmp-border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.wtmp-league-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

/* Detailed Match Body */
.wtmp-match-details {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Meta info (time, status, channel) */
.wtmp-match-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--wtmp-muted);
    font-weight: 500;
}
.wtmp-match-meta span {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
}
.wtmp-status-live {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    animation: wtmp-pulse 2s infinite;
}

/* Scoreboard display */
.wtmp-scoreboard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}
.wtmp-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 35%;
}
.wtmp-team img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    padding: 4px;
}
.wtmp-team strong {
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* The central score block */
.wtmp-score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    justify-content: center;
}
.wtmp-score-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: monospace;
    letter-spacing: 2px;
}
.wtmp-score-numbers div {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.wtmp-match-time {
    font-size: 0.8rem;
    color: var(--wtmp-accent);
    margin-top: 6px;
    font-weight: 600;
}

/* -------------------------------------- */
/* Sidebar (Short Design) Specific Styles */
/* -------------------------------------- */
.wtmp-wrapper-sidebar {
    padding: 12px;
    background: transparent;
    box-shadow: none;
}
.wtmp-sidebar-card {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--wtmp-card-bg);
    border: 1px solid var(--wtmp-border);
    border-radius: 10px;
    margin-bottom: 12px;
}
.wtmp-sidebar-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
}
.wtmp-sidebar-team img {
    width: 25px;
    height: 25px;
    /* margin-bottom: 4px; */
}
.wtmp-sidebar-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    width: 40%;
}
.wtmp-sidebar-time {
    font-size: 0.9rem;
    color: var(--wtmp-accent);
    margin-top: 2px;
}
.wtmp-sidebar-meta {
    text-align: center;
    font-size: 1rem;
    color: var(--wtmp-muted);
    margin-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 6px;
}

/* Error/Empty State */
.wtmp-error {
    text-align: center;
    padding: 24px;
    color: var(--wtmp-muted);
    font-size: 0.9rem;
}

@keyframes wtmp-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}
