.wsm-container {
    position: relative;
    border-radius: 16px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-sizing: border-box;
}
.wsm-container * {
    box-sizing: border-box;
}

/* Perataan widget di dalam container/kolom tempat ia diletakkan */
.wsm-container.wsm-align-left   { margin: 20px auto 20px 0; }
.wsm-container.wsm-align-center { margin: 20px auto; }
.wsm-container.wsm-align-right  { margin: 20px 0 20px auto; }

.wsm-overlay {
    padding: 30px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.15);
}

.wsm-header {
    margin-bottom: 20px;
}

.wsm-masjid-nama {
    font-size: 22px;
    margin: 0 0 6px;
    font-weight: 700;
}

.wsm-kota {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
}

.wsm-tanggal {
    margin: 4px 0 0;
    font-size: 14px;
    opacity: 0.75;
}

.wsm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.wsm-item {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s ease;
}

.wsm-label {
    font-size: 12px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wsm-jam {
    font-size: 19px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.wsm-item.wsm-active {
    background: var(--wsm-accent, #ffd700);
    color: #1a1a1a;
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.wsm-item.wsm-passed {
    opacity: 0.55;
}

@media (max-width: 600px) {
    .wsm-layout-vertical .wsm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .wsm-masjid-nama {
        font-size: 18px;
    }
}

/* =========================================================
   LAYOUT: HORIZONTAL (landscape / banner lebar)
   ========================================================= */
.wsm-layout-horizontal .wsm-overlay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 22px 26px;
    text-align: left;
}

.wsm-layout-horizontal .wsm-header {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.wsm-layout-horizontal .wsm-grid {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 0;
}

.wsm-layout-horizontal .wsm-item {
    flex: 1 1 76px;
    min-width: 76px;
}

@media (max-width: 768px) {
    .wsm-layout-horizontal .wsm-overlay {
        flex-direction: column;
        text-align: center;
    }
    .wsm-layout-horizontal .wsm-header {
        text-align: center;
    }
    .wsm-layout-horizontal .wsm-grid {
        justify-content: center;
        width: 100%;
    }
}

/* =========================================================
   LAYOUT: COMPACT (satu baris ringkas, cocok untuk sidebar/ticker)
   ========================================================= */
.wsm-layout-compact .wsm-overlay {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 16px;
    text-align: left;
}

.wsm-layout-compact .wsm-header {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.wsm-layout-compact .wsm-masjid-nama {
    font-size: 14px;
    margin: 0;
}

.wsm-layout-compact .wsm-kota,
.wsm-layout-compact .wsm-tanggal {
    display: none;
}

.wsm-layout-compact .wsm-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0;
}

.wsm-layout-compact .wsm-item {
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
}

.wsm-layout-compact .wsm-label {
    font-size: 10px;
}

.wsm-layout-compact .wsm-jam {
    font-size: 13px;
}

.wsm-layout-compact .wsm-item.wsm-active {
    transform: none;
}
